﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace DragDraw.Tool.Component
{
    public partial class EditTextBox : UserControl
    {
        public EditTextBox()
        {
            InitializeComponent();
        }

        public string Text
        {
            get
            {
                return TxtEdit.Text;
            }
            set
            {
                TxtEdit.Text = value;
                TxtPresent.Text = value;
                OnTextChange(this, EventArgs.Empty);
            }
        }

        public event EventHandler<EventArgs> OnTextChange;

        private void TextBox_LostFocus(object sender, RoutedEventArgs e)
        {

        }

        private void TextBlock_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {

        }
    }
}
